NevronOpenVision
Nevron.Nov.DataStructures Namespace / NArrayHelpers<T> Class / Shuffle Method / Shuffle(T[]) Method
In This Topic
    Shuffle(T[]) Method
    In This Topic
    Randomly repositions the elements in the given array using the Fisher-Yates algorithm AKA the Knuth Shuffle. It runs in O(n) time and shuffles in place, so it's better performing than the "sort by random" technique.
    Syntax
    public static void Shuffle( 
       T[] array
    )

    Parameters

    array
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also